class ShoppingCart(object):
    def __init__(self, n):
        self.name = n


class Vehicle(object):
    def __init__(self, n):
        self.name = n


class AutomobieSalesServiceShop4S(object):
    def __init__(self, n):
        self.name = n


class Person(object):
    def __init__(self, n):
        self.name = n

    def shopping(self, addr, something):
        print(self.name, "在", addr.name, "购买了一台", something.name)


class Cloud(object):
    def __init__(self, add):
        self.address = add

    def move(self, direction):
        print(self.address, "朝着", direction, "移动")


c1 = Cloud((127.8, 43.6))
c1.move("西")

XiMing = Person("小明")
qiChen = AutomobieSalesServiceShop4S("启辰")
tesla = Vehicle("Model 3")
XiMing.shopping(qiChen, tesla)

# m = ShoppingCart()
# m1 = ShoppingCart()
# m3 = ShoppingCart()
p1 = Person("Joker")
s4 = qiChen = AutomobieSalesServiceShop4S("华阳")
v1 = Vehicle("HanMa")
p1.shopping(s4, v1)


class Student(object):
    def __init__(self,a1,a2,a3,a4,a5):
        self.name = a1
        self.age = a2
        self.sex = a3
        self.classNum = a4
        self.sno = a5

    def displayInfo(self):
        print(self.name,self.age,'岁',self.sex,self.classNum,self.sno)
